﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Menu_Item_Project
{
    class Program
    {
        static void Main(string[] args)
        {
            //MenuItem bev1 = new Beverage(1, 2, 3, "espresso");
            //MenuItem bev2 = new Beverage(1, 2, 3, "pepsi");

            //MenuItem sn1 = new Snack("chips", 5);
            //MenuItem sn2 = new Snack("muffin", 10);

            //bev1.PrinttoConsole();
            //bev2.PrinttoConsole();
            //sn1.PrinttoConsole();
            //sn2.PrinttoConsole();

            //List<MenuItem> menu = new List<MenuItem>

            //{
            //new Beverage(1, 2, 3, "espresso"),
            //new Beverage(1, 2, 3, "pepsi"),
            //new Snack("chips", 5),
            //new Snack("muffin", 10)
            //};

            //foreach (var item in menu)
            //{
            //    item.PrinttoConsole();
            //}

            MenuItem[] mu = new MenuItem[] {
            new Beverage(1, 2, 3, "espresso"),
            new Beverage(1, 2, 3, "pepsi"),
            new Snack("chips", 5),
            new Snack("muffin", 10)
            };
            
                for (int i = 0; i < mu.Length;i++)
            {
                mu[i].PrinttoConsole();

            }


        }
    }
}
